package com.wl4837;

public class App
{
    public static void main( String[] args )
    {
        // 创建子系统组件
        Projector projector = new Projector();
        SoundSystem soundSystem = new SoundSystem();
        TheaterLights lights = new TheaterLights();
        DvdPlayer dvdPlayer = new DvdPlayer();

        // 创建外观
        HomeTheaterFacade homeTheater =
                new HomeTheaterFacade(projector, soundSystem, lights, dvdPlayer);

        // 使用简化接口
        homeTheater.watchMovie("阿凡达");

        System.out.println("\n观影中...\n");

        homeTheater.endMovie();
    }
}
